import { isLocal } from '../../env'

export const AssetMap = process.env.ASSET_MAP

export function getAsset (key) {
  if (isLocal()) {
    return process.env.LOCAL_SERVER + '/static/' + key
  } else {
    return AssetMap[key]
  }
}
